package eteam.aps.systeminterface.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @description : 字典表实体
 */
@Data
@TableName(value = "sp_dictionary")
public class DictionaryEntity implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "FDicId", type = IdType.AUTO)
    public Long fdicid;
    /**
     * 字典类型
     */
    @TableField(value = "FClass")
    public String fclass;
    /**
     * 编码
     */
    @TableField(value = "FCode")
    public String fcode;
    /**
     * 名称
     */
    @TableField(value = "FName")
    public String fname;
    /**
     * 备注
     */
    @TableField(value = "FRemark")
    public String fremark;
    /**
     *
     */
    @TableField(value = "FRecorder")
    public String frecorder;
    /**
     *
     */
    @TableField(value = "FRecordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date frecordtime;
    /**
     *
     */
    @TableField(value = "FLastModifier")
    public String flastmodifier;
    /**
     *
     */
    @TableField(value = "FLastModifyTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date flastmodifytime;
    /**
     * 状态【-1删除 0停用 1启用】
     */
    @TableField(value = "State")
    public Integer state;
    @TableField(value = "Sort")
    public Integer sort;

    /**
     * 字典值
     */
    @TableField(exist = false)
    public List<DictionaryEntity> children;
}
